import request from '/@/utils/request'
// 查询短信日志列表
export function listPluginSmsLog(query:object) {
  return request({
    url: '/api/v1/plugins/sms/pluginSmsLog/list',
    method: 'get',
    params: query
  })
}
// 查询短信日志详细
export function getPluginSmsLog(id:number) {
  return request({
    url: '/api/v1/plugins/sms/pluginSmsLog/get',
    method: 'get',
    params: {
      id: id.toString()
    }
  })
}
// 新增短信日志
export function addPluginSmsLog(data:object) {
  return request({
    url: '/api/v1/plugins/sms/pluginSmsLog/add',
    method: 'post',
    data: data
  })
}
// 修改短信日志
export function updatePluginSmsLog(data:object) {
  return request({
    url: '/api/v1/plugins/sms/pluginSmsLog/edit',
    method: 'put',
    data: data
  })
}
// 删除短信日志
export function delPluginSmsLog(ids:number[]) {
  return request({
    url: '/api/v1/plugins/sms/pluginSmsLog/delete',
    method: 'delete',
    data:{
      ids:ids
    }
  })
}
